<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateWebsetsTable extends Migration
{
    //提交
    public function up()
    {
        Schema::create('websets', function (Blueprint $table) {
            $table->increments('id');
			$table->string('name',100)->default('')->comment('网站名称|input');
			$table->string('logo',500)->comment('logo|image');
			$table->string('banquan',300)->default('')->comment('版权|input');
			$table->string('phone')->default('')->comment('联系电话|input');
			$table->string('about')->default('')->comment('关于|input');
            $table->timestamps();
        });
    }

    //回滚
    public function down()
    {
        Schema::dropIfExists('websets');
    }
}
